//------------------------------------------------------------------------------------------------------
// 入口
//------------------------------------------------------------------------------------------------------
// 新建全局变量Game，可用自定义子类继承GameBase
var Game = new GameBase();
// 监听引擎初始化
EventUtils.addEventListenerFunction(ClientWorld, ClientWorld.EVENT_INITED, () => {
    // to do
    // -- 如显示1号界面
    var PLUGIN_GUI_CZ: number = 15001;
    var gui_cz = GameUI.show(PLUGIN_GUI_CZ) as W26_Cz;
    gui_cz.start([1, 2, 3]);
    GameAudio.playBGM("asset/audio/bgm/maou_bgm_neorock10.mp3", 0.5, 9999, true, 3000);
    EventUtils.addEventListenerFunction(W26_Cz, W26_Cz.GAME_COMPLETED, (result: boolean) => {
        GameAudio.stopBGM(true, 2000);

        //@ts-ignore
        //EventUtils.removeEventListenerFunction(W26_Cz, W26_Cz.GAME_COMPLETED, arguments.callee, this);
        setTimeout(() => {
            gui_cz = GameUI.show(PLUGIN_GUI_CZ) as W26_Cz;
            gui_cz.start([1, 2, 3]);
            GameAudio.stopBGM();
            GameAudio.playBGM("asset/audio/bgm/maou_bgm_neorock10.mp3", 0.5, 9999, true, 3000);
        }, 3000);

    }, this);


}, null)